<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>:::SNPTorrent::: Browsing SNP Information</title>
   <script type="text/javascript" src="js/raphael.js"></script>
   <script type="text/javascript" src="js/popup.js"></script>
   <script type="text/javascript" src="js/jquery.js"></script>
   <script type="text/javascript" src="js/drawGraph.js"></script>
	</head>
	<body>
	<br>
		<div id="searchPanel" align="center">
			<form id="mainForm" action="Result.do" name="mainForm" method="GET">
				<select name="genome">
					<option selected value="snp">SNP</option>
					<option value="omim">OMIM</option>
				</select> 
				<select name="assembly">
					<option selected value="hg19">Feb. 2009 (GRCh37/hg19)</option>
				</select> 
				<select name="chrom">
					<option selected value="chr1">chr1</option>
					<option value="chr2">chr2</option>
					<option value="chr3">chr3</option>
					<option value="chr4">chr4</option>
					<option value="chr5">chr5</option>
					<option value="chr6">chr6</option>
					<option value="chr7">chr7</option>
					<option value="chr8">chr8</option>
					<option value="chr9">chr9</option>
					<option value="chr10">chr10</option>
					<option value="chr11">chr11</option>
					<option value="chr12">chr12</option>
					<option value="chr13">chr13</option>
					<option value="chr14">chr14</option>
					<option value="chr15">chr15</option>
					<option value="chr16">chr16</option>
					<option value="chr17">chr17</option>
					<option value="chr18">chr18</option>
					<option value="chr19">chr19</option>
					
					<option value="chr20">chr20</option>
					<option value="chr21">chr21</option>
					<option value="chr22">chr22</option>
					<option value="chrX">chrX</option>
					<option value="chrY">chrY</option>
				</select> 
				<input id="chromStart" type="text" size="10" name="chromStart" value="33031597" />
				<input id="chromEnd" type="text" size="10" name="chromEnd" value="33041570" /> 
				<input id="submit" type="submit" value="submit" />
			</form>
		</div>
		<br>
		<%
				String chrom = request.getParameter("chrom");
				String chromStart = request.getParameter("chromStart");
				String chromEnd = request.getParameter("chromEnd");
		%>
		<div id="cytobandPanel" align="center">
			<font size="4"><%=chrom%> : &nbsp;&nbsp; <%=chromStart%> &nbsp;&nbsp; ~ &nbsp;&nbsp; <%=chromEnd%></font>
			<br>
			<img src="Cytoband.do?chrom=<%=chrom%>">
		</div>
		<div id="genomePanel" align="center"></div>
		<br><br>
		<div id="graphPanel" align="center">
			<img src="Graph.do?chrom=<%=chrom%>&chromStart=<%=chromStart%>&chromEnd=<%=chromEnd%>">
		</div>
		<br>
		<table id="data">
			<tbody>
				<tr>
					<td>8</td><td>25</td><td>27</td><td>25</td><td>54</td><td>59</td><td>79</td><td>47</td><td>27</td><td>44</td>
				</tr>
			</tbody>		
			<tfoot>
				<tr>
				<% for (int i = Integer.parseInt(chromStart); i <= Integer.parseInt(chromEnd); i = i + 1000)  { %>
					<th><%=i%></th>
				<%} %>				
				</tr>
			</tfoot>
   </table>
		<div id="menuPanel" align="center">
			<table>
				<tr>
					<td>&nbsp;</td>
					<td><a href="#">Search NCBI</a></td>
					<td>&nbsp;</td>
					<td><a href="#">Search SNP Functional Prediction</a></td>
					<td>&nbsp;</td>
					<td><a href="#">Search OMIM information</a></td>
					<td>&nbsp;</td>
					<td><a href="#">Search Medical Terminology</a></td>
					<td>&nbsp;</td>
				</tr>
			</table>
		</div>		
	</body>
</html>

